﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.behavioralmodule.Mediator
{
    class Main
    {
        void main()
        {
            var m=new ConcreteMediator();
            var c1=new ConcreteColleague1(m);
            var c2 = new ConcreteColleague2(m);

            m.ConcreteColleague1 = c1;
            m.ConcreteColleague2 = c2;

            c1.Send("吃饭了吗");
            c2.Send("没有，一起");


        }
    }
}
